<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>礼包前台列表</title>
<jsp:include page="/WEB-INF/backstage/util.jsp" />
</head>
<body>
<hr>
	<center>
		<form action="http://127.0.0.1:8081/bsc/jhy/selectBis_nurse_bag1"
			method="post" class="form-inline" id="myform">
			<div class="form-group">
				礼包名称：<input type="text" class="form-control" id="bag_name"
					name="bag_name">
			</div>
			<div class="form-group">
				价格区间：<input type="number" class="form-control" step="10" id="min" name="min" value="0">至<input
					type="number" class="form-control" step="10" id="max" name="max"
					value="0">
			</div>
			<button class="btn btn-default btn-sm" type="submit">
				<span class="glyphicon glyphicon-search" aria-hidden="true"></span>查询
			</button>
			<button type="reset" class="btn btn-default btn-sm">
				<span class="glyphicon glyphicon-repeat" aria-hidden="true">重置
			</button>
			
		</form>
<hr>
		<form action="" method="post">
			<table data-toggle="table" class="table table-hover table-condensed">
				<tr>
					<td>礼包宣传图片</td>
					<td>礼包编号</td>
					<td>礼包名称</td>
					<td>建立时间</td>
					<td>礼包价格(元)</td>
					<td>礼包内容</td>
					<td>上架时间</td>
					<td>有效期（天）</td>

				</tr>
				<c:forEach items="${bag1List }" var="b">
					<tr>
						<td>
							<div
								style="width: 100px; height: 100px; border-radius: 50%; overflow: hidden;">
								<img width="100px" height="100px"
									src="http://localhost:8081/bsc/js/${b.cover_photo }">
							</div>
						</td>
						<td>${b.bag_id }</td>
						<td>${b.bag_name }</td>
						<td>${b.create_time }</td>
						<td>${b.bag_total_price }</td>
						<td width="300px">
							<div style="height: 60px; overflow-y: scroll;">${b.project_content }</div>
						</td>
						<td>${b.putaway_time }至${b.soldout_time }</td>
						<td>${b.overdue_time }</td>

					</tr>
				</c:forEach>
			</table>
		</form>
	</center>
</body>
<script type="text/javascript">
	function zhcx() {
		form.action = "/bsc/proltal/jhybag1/selectBis_nurse_bag1";
		form.submit();
	}
</script>
</html>